package com.fancy.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_user")
public class User {
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    private String username;
    private String password;
    private String email;
    private String phone;
    private String nickname;
    private String avatarUrl;
    
    private Integer gender;
    private LocalDateTime birthday;
    private String introduction;
    private String hobby;
    
    private Integer status;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    private LocalDateTime lastLoginTime;
    private String loginIp;
}